import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
//全局配置axios允许跨域携带cookie,不然无法存储cookie
import ECharts from 'echarts';

import FileSaver from 'file-saver'
import XLSX from 'xlsx'



Vue.prototype.$FileSaver = FileSaver; //设置全局
Vue.prototype.$XLSX = XLSX; //设置全局
//注册全局组件
Vue.component('v-chart', ECharts)
axios.defaults.withCredentials = true;
Vue.use(ElementUI);

Vue.prototype.axios = axios

Vue.config.productionTip = false

new Vue({

  router,
  store,
  render: h => h(App)
}).$mount('#app')
